{include file="pub_header.htm"}
<div class="out_table">
<table width="100%" cellpadding="6" cellspacing="6" border="0" align="center" class="frame_table">
  <tr>
    <td width="20%" align="left" valign="top" bgcolor="#EEEEEE" class="main_border_inside">
      {include file="pub_submenu.htm"}
    </td>
    <td width="80%" align="center" valign="top" bgcolor="#FFFFFF">

      <div class="right_table">
      <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
        <tr>
          <td align="left" nowrap>&nbsp;
            <a href="{$control_admin}" target="_self" class="current_place">管理首页</a>
            &raquo; <a href="{$control_admin}?act=forbid_ip" target="_self" class="current_place">屏蔽IP</a>
          </td>
          <td align="right" nowrap>
            &nbsp;
          </td>
        </tr>
      </table>
      </div>

      <div class="space"></div>
      <div class="right_table">
      <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
        <tr align="left" class="block_header">
          <td colspan="6">屏蔽IP列表</td>
        </tr>
        <tr class="block_title">
          <td width="30%" height="25" nowrap>IP</td>
          <td width="20%" nowrap>建立时间</td>
          <td width="10%" nowrap>开始时间</td>
          <td width="10%" nowrap>到期时间</td>
          <td width="20%" nowrap>添加人</td>
          <td width="10%" nowrap>操作</td>
        </tr>
        {foreach name=forbid_ip_list from=$forbid_ip_list item=item}
        <tr align="center" class="block_list" onmouseover="this.className='block_list_over'" onmouseout="this.className='block_list'">
          <td height="25" nowrap>{$item.ip1}.{$item.ip2}.{$item.ip3}.{$item.ip4}</td>
          <td height="25" nowrap>{$item.time_created|date_format:"%Y-%m-%d %H:%M:%S"}</td>
          <td height="25" nowrap>{if $item.time_begin == "0"}不限制{else}{$item.time_begin|date_format:"%Y-%m-%d %H:%M:%S"}{/if}</td>
          <td height="25" nowrap>{if $item.time_end == "0"}不限制{else}{$item.time_end|date_format:"%Y-%m-%d %H:%M:%S"}{/if}</td>
          <td height="25" nowrap><a href="index.php?act=member_view&mid={$item.member_id}" target="_blank">{$item.member_username}</a></td>
          <td align="center" nowrap>
            <a href="{$control_admin}?act=forbid_ip&ope=del&ip1={$item.ip1}&ip2={$item.ip2}&ip3={$item.ip3}&ip4={$item.ip4}" target="_self" onClick="return confirm('真的要删除记录?')"><img src="{$dir_images_admin}/icon_delete.gif" border="0" alt="删" title="删除记录"></a>
          </td>
        </tr>
        {/foreach}
        <form action="{$control_admin}?act=forbid_ip&ope=add" method="post" name="forbid_ip" id="forbid_ip" enctype="multipart/form-data">
        <tr class="block_footer" align="center">
          <td height="25" nowrap>
            <input type="text" id="ip1" name="ip1" size="1" maxlength="3" value="" class="input" />.
            <input type="text" id="ip2" name="ip2" size="1" maxlength="3" value="" class="input" />.
            <input type="text" id="ip3" name="ip3" size="1" maxlength="3" value="" class="input" />.
            <input type="text" id="ip4" name="ip4" size="1" maxlength="3" value="" class="input" />
            (可用*通配符)
          </td>
          <td align="center" nowrap>&nbsp;</td>
          <td align="center" nowrap>
            <input type="text" id="time_begin" name="time_begin" size="12" maxlength="10" value="0" class="input" />
            (0为不限制)
          </td>
          <td align="center" nowrap>
            <input type="text" id="time_end" name="time_end" size="12" maxlength="10" value="0" class="input" />
            (0为不限制)
          </td>
          <td align="left">&nbsp;</td>
          <td align="center" nowrap><input type="submit" name="submit" value="添加" class="submit"></td>
        </tr>
        </form>
      </table>
      </div>

    </td>
  </tr>
</table>
{include file="pub_footer.htm"}